<!doctype html>
<html>
<head>
    <title>设置</title>
    <?php $this->load->module('admin/index/page_header');?>
</head>
<body>
<div class="wrap">
    <div class="table_full">
        <form class="formvalidate" action="" method="post">
            <div class="h_a">配置信息</div>
            <div class="table_full">
                <table width="100%">
                    <col class="th" />
                    <col/>
                    <tbody>
                    <tr>
                        <th>URL</th>
                        <td>
                            <p><?php echo site_url('weixin/api');?></p>
                        <span class="fun_tips">如果您希望使用微信相关功能，请把此栏中的内容填写到微信公众平台“开发者中心”设置中。</span>
                        </td>
                    </tr>
                    <tr>
                        <th>微信账户名</th>
                        <td><input type="text" name="Form[username]" class="input rounded" size="80" value="<?php echo !empty($row['username']) ? $row['username'] :''?>" validate="{required:true}" />
                        <span class="fun_tips">微信公众号名称</span>
                        </td>
                    </tr>
                    <tr>
                        <th>TOKEN</th>
                        <td><input type="text" name="Form[token]" class="input rounded" size="80" value="<?php echo !empty($row['token']) ? $row['token'] :''?>" validate="{required:true}" />
                        <span class="fun_tips">微信后台&raquo;开发者中心&raquo;配置项&raquo;Token</span>
                        </td>
                    </tr>
                    <tr>
                        <th>AppId</th>
                        <td><input name="Form[appid]" type="text" class="input" size="80" value="<?php echo !empty($row['appid']) ? $row['appid'] :''?>" validate="{required:true}" />
                        <span class="fun_tips">微信后台&raquo;开发者中心&raquo;配置项&raquo;AppId</span>
                        </td>
                    </tr>
                    <tr>
                        <th>AppSecret</th>
                        <td><input name="Form[appsecret]" type="text" class="input" size="80" value="<?php echo !empty($row['appsecret']) ? $row['appsecret'] :''?>" validate="{required:true}" />
                            <span class="fun_tips">微信后台&raquo;开发者中心&raquo;配置项&raquo;AppSecret（安全提示，AppSecret，不要随意对外公开.）</span>
                        </td>
                    </tr>
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button type="submit" class="btn btn_submit J_ajax_submit_btn">保存</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </form>
    </div>
</div>
</body>
</html>